import {
  SET_DATA_SYNC_ITEMS,
} from "./action-types";

const initialState = {
  items: []
};

const data = (state = initialState, action) => {
  switch (action.type) {
    case SET_DATA_SYNC_ITEMS:
      return { ...state, items: action.payload.items };
    default:
      return state;
  }
};

export default data;
